#pragma once
#include <QtUiPlugin/QDesignerCustomWidgetInterface>

class SWidgetsPluginCollectionInterface : public QObject, public QDesignerCustomWidgetCollectionInterface
{
	Q_OBJECT
	Q_PLUGIN_METADATA(IID "org.sumscope.com.widets.SWidgetsPluginCollectionInterface")
	Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)

public:
	SWidgetsPluginCollectionInterface(QObject* parent = nullptr);
	QList<QDesignerCustomWidgetInterface*> customWidgets() const override { return m_widgets; }

private:
	QList<QDesignerCustomWidgetInterface*>	m_widgets;
};